import {globalConfig} from "../../config/globalConfig";

export class HeadModel {
  private _shopHeadData: Array<HeadShopData>

  constructor() {
    this._shopHeadData = globalConfig.item.filter((value: any) => value.type === 6).map((headData: any) => {
      return Object.assign(headData, {state: 0})
    });
  }

  get shopHeadData(): Array<HeadShopData> {
    return this._shopHeadData;
  }
}

export interface HeadShopData {
  id?: number,
  cost?: number,
  currencytype?: number,
  state?: number,
  iconid?: number,
  purch?: number,
  way?: number
}